home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-10-08 | 1.5 KB | 77 lines |
- #
- # Makefile for vopl
- #
- # Usage: make -f Makefile.sgi
- #
- ############################################################
- #
- SHELL = /bin/sh
- RANLIB = echo
-
- #
- # Global CFLAGS can be set here. These are the ones we use on a sun.
- #
- # NOTE: change the -L bit or put libvogl.a and libhershey.a somewhere
- # where the linker can find them....
- WHERELIBS = -L/home/muse/mu/guest/decr/lib
- MCFLAGS = -O -DSGI_GL
- #
- # If we have fortran and want the examples compiled we have to say so.
- #
- F77 =
- # Global FFLAGS can be set here. These are the ones we use on a sun.
- #
- MFFLAGS = -g
-
- #
- # The name of the library to install and where to put it.
- #
- LIB = libvopl.a
- DEST = /usr/lib
-
- #
- # Any other libraries that are needed go here
- #
-
- SGILIBS = -lgl_s
-
-
- all:
- cd src; make -f Makefile \
- RANLIB="$(RANLIB)" \
- MCFLAGS="$(MCFLAGS)"
-
- if test -n "$(F77)" ; \
- then cd examples; \
- make -f Makefile.f77 \
- MFFLAGS="$(MFFLAGS)" \
- WHERELIBS="$(WHERELIBS)" \
- LIBS="$(SGILIBS)"; \
- fi; exit 0
-
- cd examples; make -f Makefile \
- MCFLAGS="$(MCFLAGS)" \
- WHERELIBS="$(WHERELIBS)" \
- LIBS="$(SGILIBS)"
-
- cd gpp; make -f Makefile \
- MCFLAGS="$(MCFLAGS)" \
- WHERELIBS="$(WHERELIBS)" \
- LIBS="$(SGILIBS)"
-
- clean:
- cd src; make clean
- cd examples; make clean
- cd examples; make -f Makefile.f77 clean
- cd gpp; make clean
-
- clobber:
- cd src; make clobber
- cd examples; make clobber
- cd examples; make -f Makefile.f77 clobber
- cd gpp; make clobber
-
- install:
- cp src/$(LIB) $(DEST)
- chmod 644 $(DEST)/$(LIB)
-